﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe Name="CreateEventSubscription" xmlns="http://schemas.microsoft.com/pag/gax-core"
                               xmlns:xi="http://www.w3.org/2001/XInclude" Bound="false">
  <xi:include href="../Common/CommonTypeAliases.xml"
				xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Types)" />
  <Caption>Event Subscription</Caption>
  <Description>Event Subscription</Description>
  <HostData>
    <Icon File="Resources\VSEvents.ico" />
    <CommandBar Menu="VSSDKAssistProjectCreate"/>
  </HostData>
  <Arguments>
    <xi:include href="../Common/CommonArguments.xml"
					  xpointer="xmlns(gax=http://schemas.microsoft.com/pag/gax-core) xpointer(/gax:Arguments/gax:Argument)" />
    <Argument Name="VSPackageProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSSDKAssist.Assets.ValueProviders.VisualStudio.CurrentlySelectedProjectValueProvider, VSSDKAssist.Assets"
                     Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="VSPackageCodeClass" Type="EnvDTE.CodeClass, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="true">
      <ValueProvider Type="VSSDKAssist.Recipes.Common.ValueProviders.VSPackageCodeClassValueProvider, VSSDKAssist" 
                     Stage="OnBeginRecipe"/>
    </Argument>
    <Argument Name="VSEvent" Type="VSSDKAssist.Enums.VSEvent, VSSDKAssist"/>
    <Argument Name="CommandGuid" Required="false">
      <ValueProvider Type="VSSDKAssist.Assets.ValueProviders.Framework.EmptyGuidValueProvider, VSSDKAssist.Assets"
                     Stage="OnBeginRecipe" />
    </Argument>
    <Argument Name="CommandId" Required="false">
      <ValueProvider Type="Evaluator"
                     Expression="0"
                     Stage="OnBeginRecipe" />
    </Argument>
  </Arguments>
  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
      <Pages>
        <Page Type="VSSDKAssist.Recipes.CreateEventSubscription.CreateEventSubscriptionCP, VSSDKAssist"
              Height="200" Width="510">
          <Title>Specify event subscription properties</Title>
          <LinkTitle>Event subscription  properties</LinkTitle>
        </Page>
      </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions CoordinatorServiceType="VSSDKAssist.Recipes.Common.Coordinators.ExecutionProgressCoordinator, VSSDKAssist">
    <!--Subscribe to Event-->
    <Action Name="SubscribeToEvent"
          Type="VSSDKAssist.Recipes.CreateEventSubscription.CreateEventSubscriptionAction, VSSDKAssist"
          StatusMessage="Adding event subscription"
          WriteMessageToOutputWindow="true">      
      <Input Name="Project" RecipeArgument="VSPackageProject"/>
      <Input Name="CodeClass" RecipeArgument="VSPackageCodeClass"/>
      <Input Name="VSEvent" RecipeArgument="VSEvent"/>
      <Input Name="CommandGuid" RecipeArgument="CommandGuid"/>
      <Input Name="CommandId" RecipeArgument="CommandId"/>
    </Action>
  </Actions>
</Recipe>